package com.example.user.service;

import com.example.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

/**
 * @author: mtl
 * @Date: 2022/1/18 18:00
 * @Description: 
 */
public interface UserService extends IService<User>{

    /**
     * 取用户角色
     * @param username
     * @return
     */
    Set<String> byUserRoles(String username);

    /**
     * 取用户权限
     * @param username
     * @return
     */
    Set<String> byUserPermissions(String username);

    /**
     * 批量生成用户
     * @param size
     * @param page
     * @return
     */
    public String batchList(Integer size,Integer page);

}
